package com.zs.zcerp.approval.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zs.zcerp.approval.entity.EmpEntity;
import com.zs.zcerp.approval.entity.QhBasestdDEntity;
import com.zs.zcerp.approval.entity.QhBasestdDEntity;
import com.zs.zcerp.common.entity.QueryRequest;

import java.util.List;

/**
 *
 * @author Henry
 * @date 2021-04-20 20:58:44
 */
public interface IQhBasestdDService extends IService<QhBasestdDEntity> {

    /**
     * 查找签核人员详细信息
     *
     * @param request request
     * @param qhBasestdDEntity    基本签核人员分类对象，用于传递查询条件
     * @return IPage
     */
    IPage<QhBasestdDEntity> findClassifyDetailList(QhBasestdDEntity qhBasestdDEntity, QueryRequest request);






    /**
     * 批量新增签核人员
     * @param QhBasestdDEntity
     */
    void createBaseList(List<QhBasestdDEntity> QhBasestdDEntity);




    /**
     * 批量更新签核人员
     * @param QhBasestdDEntity
     */
    void bacthUpdate(List<QhBasestdDEntity> QhBasestdDEntity);


    /**
     * 批量删除签核人员
     * @param QhBasestdDEntity
     */
    void bacthDelete(List<QhBasestdDEntity> QhBasestdDEntity);



    List<QhBasestdDEntity> findbaseStdDetails(String basestdNo,String orgId);

    /**
     * 根据用户id更新流程人员名字
     * @param q
     */
    void updateNamesbychkUser(EmpEntity q);

    void bacthUpdateNames();

    /**
     * 获取用户工号和名字集合
     * @return
     */
    List<EmpEntity> findEmpNoAndNames();


    void deleteByorgIdAndBasestdNo(Integer orgId, String basestdNo);

    void cruUpdate(List<QhBasestdDEntity> qhBasestdDEntityList);

    void deleteBasestdMByBasestdNo(String[] basestdNos);
}

